package com.sxm.yiwei.activitis;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.webkit.WebView;
import android.widget.ImageView;

import com.sxm.yiwei.R;
import com.sxm.yiwei.utils.InternetAddressUtis;

public class MineRank extends BaseActivity implements View.OnClickListener{

    private ImageView rankback;
    private WebView rankweb;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_mine_rank);

        initRankView();
        initWeb();


    }

    private void initWeb() {
        rankweb.getSettings().setJavaScriptEnabled(true);
        rankweb.loadUrl(InternetAddressUtis.Url+"/protocol/sellGrade");
    }

    // 初始化控件
    private void initRankView() {
        rankback = (ImageView) findViewById(R.id.mine_rank_back);
        rankweb = (WebView) findViewById(R.id.mine_rankweb);
        // 设置点击监听
        rankback.setOnClickListener(this);
    }
        // 点击事件
    @Override
    public void onClick(View v) {
        switch (v.getId()){
            case R.id.mine_rank_back:
                finish();
                break;
        }
    }
}
